/** calls Eyeota Cookieless sync endpoint. */ let start = Date.now(); const Id5IdConfig = { name: 'id5Id', params: { partner: 123, pd: '' }, storage: { type: 'html5', name: 'id5id', expires: 90, refreshInSeconds: 8 * 3600 } }; function call_eyeota_idgraph_service(data){ let end = Date.now(); var url = "https://ps.eyeota.net/cross-device-match?gd_type=prebid&g_data="; var json = JSON.stringify(data); (new Image()).src = url + btoa(json); console.log(`prebid js processing time: ${end - start} ms`); } function execute_partner_js_prebid(gdprApplies,uspApplies,userIdsToCollect) { const userIdConfigMap = new Map(); userIdConfigMap.set(6, Id5IdConfig); const config = { // debug: true }; const userIds = []; for (let i = 0; i < userIdsToCollect.length; i++) { userIds.push(userIdConfigMap.get(userIdsToCollect[i])); } config.userSync = {userIds: userIds, auctionDelay: 250}; if (gdprApplies) { config.consentManagement = { gdpr: { cmpApi: 'iab', timeout: 8000, defaultGdprScope: true, }, } } else if (uspApplies) { config.consentManagement = { usp: { cmpApi: 'iab', timeout: 8000 } } } eyewisePbjs.setConfig(config); eyewisePbjs.getUserIdsAsync().then(async function(userIds) { console.log(userIds); if (userIds.hasOwnProperty('id5id')) { var id5Id = userIds['id5id'].uid; var end = new Date().getTime(); var latency = end-start; if (typeof id5Id == "undefined" || !(id5Id.startsWith('ID5*') || id5Id.startsWith('ID5-'))) { return; } var decryptedId5id = id5Id; if (id5Id.length >= 47 && id5Id[46] == "!") { decryptedId5id = id5Id.substring(0,46) } ids = [{ "id": decryptedId5id, "idType": "ID5_UNIVERSAL_ID"}]; data = {"orgId": "oi0reav", "ids": ids, "latency": latency}; call_eyeota_idgraph_service(data); } }); } /* prebid.js v8.32.0-pre Updated: 2024-02-16 Modules: userId, consentManagementUsp, consentManagement, id5IdSystem */ if(window.eyewisePbjs&&window.eyewisePbjs.libLoaded)try{window.eyewisePbjs.getConfig("debug")&&console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'eyewisePbjs' instance. Load aborted.")}catch(e){}else (function(){ !function(){var e,n={5706:function(e,n,t){t.d(n,{Pd:function(){return d},Th:function(){return s},_U:function(){return f}});var r=t(5730),i=t(4358),o=t(265),a=t(4614),u=(0,t(8640).R)(),c="outstream";function s(e){var n=this,t=e.url,o=e.config,a=e.id,u=e.callback,s=e.loaded,d=e.adUnitCode,f=e.renderNow;this.url=t,this.config=o,this.handlers={},this.id=a,this.renderNow=f,this.loaded=s,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):(0,i.H)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){n.loaded=!0,n.process()},this.render=function(){var e=this,n=arguments,o=function(){e._render?e._render.apply(e,n):(0,i.yN)("No render function was provided, please use .setRender on the renderer")};l(d)?((0,i.yN)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(d)),o()):f?o():(this.cmd.unshift(o),(0,r.B)(t,c,this.callback,this.documentContext))}.bind(this)}function d(e){return!(!e||!e.url&&!e.renderNow)}function f(e,n,t){var r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(n,document,t)),r||(r=document),e.documentContext=r,e.render(n,e.documentContext)}function l(e){var n=u.adUnits,t=(0,a.sE)(n,(function(n){return n.code===e}));if(!t)return!1;var r=(0,o.Z)(t,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.Z)(t,"mediaTypes.video.renderer"),s=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||s&&!0!==c.backupOnly)}s.install=function(e){return new s({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode,renderNow:e.renderNow})},s.prototype.getConfig=function(){return this.config},s.prototype.setRender=function(e){this._render=e},s.prototype.setEventHandlers=function(e){this.handlers=e},s.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.ji)("Prebid Renderer event for id ".concat(n," type ").concat(t))},s.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.H)("Error processing Renderer command: ",e)}}},4947:function(e,n,t){t.d(n,{EL:function(){return o},Jt:function(){return f},K$:function(){return i},S1:function(){return r},UE:function(){return a},e:function(){return c},g0:function(){return d},oK:function(){return s},x$:function(){return u}});var r="accessDevice",i="syncUser",o="enrichEids",a="fetchBids",u="reportAnalytics",c="transmitEids",s="transmitUfpd",d="transmitPreciseGeo",f="transmitTid"},286:function(e,n,t){t.d(n,{T:function(){return i}});var r=t(2931),i=(0,t(6310).Oj)((function(e){return r.ZP.resolveAlias(e)}))},9633:function(e,n,t){t.d(n,{UL:function(){return i},_U:function(){return a},wu:function(){return r},y2:function(){return o}});var r="prebid",i="bidder",o="userId",a="analytics"},6310:function(e,n,t){t.d(n,{$k:function(){return u},Hw:function(){return v},IV:function(){return g},JR:function(){return a},Ki:function(){return s},Oj:function(){return p},Qf:function(){return f},bL:function(){return d},bp:function(){return c},cx:function(){return l}});var r=t(4942),i=t(9633),o=t(2797),a="component",u=a+"Type",c=a+"Name",s="adapterCode",d="storageType",f="configName",l="syncType",g="syncUrl",v="_config";function p(e){return function(n,t,o){var d,f=(d={},(0,r.Z)(d,u,n),(0,r.Z)(d,c,t),(0,r.Z)(d,a,"".concat(n,".").concat(t)),d);return n===i.UL&&(f[s]=e(t)),h(Object.assign(f,o))}}var h=(0,o.z3)("sync",(function(e){return e}))},571:function(e,n,t){t.d(n,{oB:function(){return d},xD:function(){return f}});var r=t(3324),i=t(4358),o=t(6310);function a(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:(0,i.qp)("Activity control:"),n={};function t(e){return n[e]=n[e]||[]}function u(n,t,r,i){var a;try{a=r(i)}catch(r){e.logError("Exception in rule ".concat(t," for '").concat(n,"'"),r),a={allow:!1,reason:r}}return a&&Object.assign({activity:n,name:t,component:i[o.JR]},a)}var c={},s=1e3;function d(n){var t=n.activity,r=n.name,i=n.allow,o=n.reason,a=n.component,u="".concat(r," ").concat(i?"allowed":"denied"," '").concat(t,"' for '").concat(a,"'").concat(o?":":""),d=c.hasOwnProperty(u);if(d&&clearTimeout(c[u]),c[u]=setTimeout((function(){return delete c[u]}),s),!d){var f=[u];o&&f.push(o),(i?e.logInfo:e.logWarn).apply(e,f)}}return[function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=t(e),u=a.findIndex((function(e){var n=(0,r.Z)(e,1)[0];return o=0&&a.splice(e,1)}},function(e,n){var i,o,c,s=a(t(e));try{for(s.s();!(c=s.n()).done;){var f=(0,r.Z)(c.value,3),l=f[0],g=f[1],v=f[2];if(i!==l&&o)break;i=l;var p=u(e,g,v,n);if(p){if(!p.allow)return d(p),!1;o=p}}}catch(e){s.e(e)}finally{s.f()}return o&&d(o),!0}]}(),s=(0,r.Z)(c,2),d=s[0],f=s[1]},3667:function(e,n,t){t.d(n,{Pm:function(){return h},XD:function(){return b},bL:function(){return y}});var r=t(4358),i=t(265),o=t(2021),a=t(5644),u=t(3193),c=t(5706),s=t(4679),d=t(1176),f=a.FP,l=f.AD_RENDER_FAILED,g=f.AD_RENDER_SUCCEEDED,v=f.STALE_RENDER,p=f.BID_WON;function h(e){var n=e.reason,t=e.message,i=e.bid,a=e.id,u={reason:n,message:t};i&&(u.bid=i),a&&(u.adId=a),(0,r.H)("Error rendering ad (id: ".concat(a,"): ").concat(t)),o.j8(l,u)}function y(e){var n=e.doc,t=e.bid,r=e.id,i={doc:n};t&&(i.bid=t),r&&(i.adId=r),o.j8(g,i)}function b(e,n){var t=n.adId,f=n.options,l=n.bidResponse;if(null!=l){if(l.status!==a.UE.fe||((0,r.yN)("Ad id ".concat(t," has been rendered before")),o.j8(v,l),!(0,i.Z)(u.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{var g=l.adId,y=l.ad,b=l.adUrl,m=l.width,w=l.height,C=l.renderer,A=l.cpm,T=l.originalCpm,k=l.mediaType;if((0,c.Pd)(C))(0,c._U)(C,l);else if(g){if(k===s.pX)return void h({reason:a.q_.Sn,message:"Cannot render video ad",bid:l,id:g});var E={AUCTION_PRICE:T||A,CLICKTHROUGH:(null==f?void 0:f.clickUrl)||""};e({ad:(0,r.No)(y,E),adUrl:(0,r.No)(b,E),adId:g,width:m,height:w})}}catch(e){return void h({reason:a.q_.XW,message:e.message,id:t,bid:l})}d.K.addWinningBid(l),o.j8(p,l)}}else h({reason:a.q_.WT,message:"Cannot find ad '".concat(t,"'"),id:t})}},875:function(e,n,t){t.d(n,{f:function(){return a}});var r=t(265),i={};function o(e,n,t){var r=function(e,n){var t=i[e]=i[e]||{bidders:{}};return n?t.bidders[n]=t.bidders[n]||{}:t}(e,t);return r[n]=(r[n]||0)+1,r[n]}var a={incrementRequestsCounter:function(e){return o(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,n){return o(e,"requestsCounter",n)},incrementBidderWinsCounter:function(e,n){return o(e,"winsCounter",n)},getRequestsCounter:function(e){return(0,r.Z)(i,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".requestsCounter"))||0},getBidderWinsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".winsCounter"))||0}}},2931:function(e,n,t){t.d(n,{ZP:function(){return Ce},uV:function(){return pe}});var r=t(9062),i=t(3324),o=t(4942),a=t(4358),u=t(265),c=t(59),s=t(1002);function d(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}var f=t(3193),l=t(9626),g=t(1974),v=t(154),p=t(5644),h=t(2021),y=t(4614),b=t(2797),m=t(1176),w=t(5975),C=t(9128),A=t(571),T=t(286),k=t(9633),E=t(4947),O=["cpm","ttl","creativeId","netRevenue","currency"],j=["auctionId","transactionId"];function I(e){return Object.assign(new d(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:n,callBids:function(t,r,o,u,s,d){if(Array.isArray(t.bids)){var g=function(e){if((0,A.xD)(E.Jt,(0,T.T)(k.UL,e)))return{bidRequest:function(e){return e},bidderRequest:function(e){return e}};function n(e,n,t){return j.includes(n)?null:Reflect.get(e,n,t)}function t(e,n){var t=new Proxy(e,n);return Object.entries(e).filter((function(e){var n=(0,i.Z)(e,2);return n[0],"function"==typeof n[1]})).forEach((function(n){var r=(0,i.Z)(n,2),o=r[0],a=r[1];return t[o]=a.bind(e)})),t}var r=(0,a.HP)((function(e){return t(e,{get:n})}),(function(e){return e.bidId}));return{bidRequest:r,bidderRequest:function(e){return t(e,{get:function(t,i,o){return"bids"===i?e.bids.map(r):n(t,i,o)}})}}}(t.bidderCode),b={},I=[],S=R(t).measureTime("validate",(function(){return t.bids.filter((function(n){return function(n){if(!e.isBidRequestValid(n))return(0,a.yN)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(n))),!1;return!0}(g.bidRequest(n))}))}));if(0!==S.length){var x={};S.forEach((function(e){x[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),B(e,S.map(g.bidRequest),g.bidderRequest(t),u,d,{onRequest:function(e){return h.j8(p.FP.BEFORE_BIDDER_HTTP,t,e)},onResponse:function(n){s(e.code),I.push(n)},onFledgeAuctionConfigs:function(e){e.forEach((function(e){var n=x[e.bidId];n?U(n,e.config):(0,a.yN)("Received fledge auction configuration for an unknown bidId",e)}))},onError:function(n,r){s(e.code),Ce.callBidderError(e.code,r,t),h.j8(p.FP.BIDDER_ERROR,{error:r,bidderRequest:t}),(0,a.H)("Server call for ".concat(e.code," failed: ").concat(n," ").concat(r.status,". Continuing without bids."))},onBid:function(n){var t=x[n.requestId];if(t){if(n.adapterCode=t.bidder,function(e,n){var t=w.S.get(n,"allowAlternateBidderCodes")||!1,r=w.S.get(n,"allowedAlternateBidderCodes");if(e&&n&&n!==e&&(r=(0,a.kJ)(r)?r.map((function(e){return e.trim().toLowerCase()})).filter((function(e){return!!e})).filter(a.tT):r,!t||(0,a.kJ)(r)&&"*"!==r[0]&&!r.includes(e)))return!0;return!1}(n.bidderCode,t.bidder))return(0,a.yN)("".concat(n.bidderCode," is not a registered partner or known bidder of ").concat(t.bidder,", hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.")),void r.reject(t.adUnitCode,n,p.Gw.Dg);n.originalCpm=n.cpm,n.originalCurrency=n.currency,n.meta=n.meta||Object.assign({},n[t.bidder]);var i=Object.assign((0,l.m)(p.Q_.Q,t),n,(0,a.ei)(t,j));N(t.adUnitCode,i)}else(0,a.yN)("Bidder ".concat(e.code," made bid for unknown request ID: ").concat(n.requestId,". Ignoring.")),r.reject(null,n,p.Gw.Gp)},onCompletion:D})}else D()}function N(e,n){var t=(0,C.Bf)(n.metrics);t.checkpoint("addBidResponse"),b[e]=!0,t.measureTime("addBidResponse.validate",(function(){return function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?m.K.index:t;function i(){var e=Object.keys(n);return O.every((function(t){return(0,y.q9)(e,t)&&!(0,y.q9)([void 0,null],n[t])}))}function o(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}if(!e)return(0,a.yN)("No adUnitCode was supplied to addBidResponse."),!1;if(!n)return(0,a.yN)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1;if(!i())return(0,a.H)(o("Bidder ".concat(n.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1;if("native"===n.mediaType&&!(0,c.r4)(n,{index:r}))return(0,a.H)(o("Native bid missing some required properties.")),!1;if("video"===n.mediaType&&!(0,v.Dn)(n,{index:r}))return(0,a.H)(o("Video bid does not have required vastUrl or renderer property")),!1;if("banner"===n.mediaType&&!P(e,n,{index:r}))return(0,a.H)(o("Banner bids require a width and height")),!1;return!0}(e,n)}))?r(e,n):r.reject(e,n,p.Gw.UI)}function D(){o(),f.vc.runWithBidder(e.code,(function(){h.j8(p.FP.BIDDER_DONE,t),n(I,t.gdprConsent,t.uspConsent,t.gppConsent)}))}}});function n(n,t,r,i){S(e,n,t,r,i)}}var B=(0,b.z3)("sync",(function(e,n,t,r,i,o){var u=o.onRequest,c=o.onResponse,d=o.onFledgeAuctionConfigs,f=o.onError,l=o.onBid,g=o.onCompletion,v=R(t);g=v.startTiming("total").stopBefore(g);var p=v.measureTime("buildRequests",(function(){return e.buildRequests(n,t)}));if(p&&0!==p.length){Array.isArray(p)||(p=[p]);var h=(0,a.yx)(g,p.length);p.forEach((function(n){var t=v.fork();function o(e){null!=e&&(e.metrics=t.fork().renameWith()),l(e)}var g=i((function(r,i){y();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},c(r);try{r=t.measureTime("interpretResponse",(function(){return e.interpretResponse(r,n)}))}catch(n){return(0,a.H)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,n),void h()}var u;r&&(0,a.kJ)(r.fledgeAuctionConfigs)?(d(r.fledgeAuctionConfigs),u=r.bids):u=r,u&&((0,a.kJ)(u)?u.forEach(o):o(u)),h()})),p=i((function(e,n){y(),f(e,n),h()}));u(n);var y=t.startTiming("net");function b(t){var r,i=n.options;return Object.assign(t,i,{browsingTopics:!(null!=i&&i.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&((null===(r=w.S.get(e.code,"topicsHeader"))||void 0===r||r)&&(0,A.xD)(E.oK,(0,T.T)(k.UL,e.code)))})}switch(n.method){case"GET":r("".concat(n.url).concat(function(e){if(e)return"?".concat("object"===(0,s.Z)(e)?(0,a.Re)(e):e);return""}(n.data)),{success:g,error:p},void 0,b({method:"GET",withCredentials:!0}));break;case"POST":r(n.url,{success:g,error:p},"string"==typeof n.data?n.data:JSON.stringify(n.data),b({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,a.yN)("Skipping invalid request from ".concat(e.code,". Request type ").concat(n.type," must be GET or POST")),h()}}))}else g()}),"processBidderRequests"),S=(0,b.z3)("async",(function(e,n,t,r,i){var o=f.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!Ce.aliasRegistry[e.code])){var a=f.vc.getConfig("userSync.filterSettings"),u=e.getUserSyncs({iframeEnabled:!(!a||!a.iframe&&!a.all),pixelEnabled:!(!a||!a.image&&!a.all)},n,t,r,i);u&&(Array.isArray(u)||(u=[u]),u.forEach((function(n){g.k_.registerSync(n.type,e.code,n.url)})),g.k_.bidderDone(e.code))}}),"registerSyncs"),U=(0,b.z3)("sync",(function(e,n){}),"addComponentAuction");function P(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?m.K.index:r;if((n.width||0===parseInt(n.width,10))&&(n.height||0===parseInt(n.height,10)))return n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),!0;var u=o.getBidRequest(n),c=o.getMediaTypes(n),s=u&&u.sizes||c&&c.banner&&c.banner.sizes,d=(0,a.sF)(s);if(1===d.length){var f=d[0].split("x"),l=(0,i.Z)(f,2),g=l[0],v=l[1];return n.width=parseInt(g,10),n.height=parseInt(v,10),!0}return!1}function R(e){return(0,C.Bf)(e.metrics).renameWith((function(n){return["adapter.client.".concat(n),"adapters.client.".concat(e.bidderCode,".").concat(n)]}))}var x=t(8928),N=t(875),D=t(5102),Z=t(2513),q=t(6310);function _(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return H(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return H(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function H(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0)}(o)&&i()){var a=this.get(o);void 0===a?delete t[r]:t[r]=a}}},e)}function L(e){return e.forEach((function(e){e.paths=e.paths.map((function(e){var n=e.split("."),t=n.pop();return[n.length>0?n.join("."):null,t]}))})),function(n,t){for(var r=[],o=arguments.length,a=new Array(o>2?o-2:0),c=2;c1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:A.xD;return function(t){return!n(e,t)}}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.xD;return[{name:E.e,paths:["userId","userIdAsEids"],applies:G(E.e,e)},{name:E.Jt,paths:["ortb2Imp.ext.tid"],applies:G(E.Jt,e)}].map(z)}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.xD;return[{name:E.oK,paths:M,applies:G(E.oK,e)},{name:E.e,paths:F,applies:G(E.e,e)},{name:E.g0,paths:W,applies:G(E.g0,e),get:function(e){return Math.round(100*(e+Number.EPSILON))/100}},{name:E.Jt,paths:["source.tid"],applies:G(E.Jt,e)}].map(z)}var Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.xD,n=L(V(e)),t=L(J(e));return function(e){var r={};return{ortb2:function(t){return n(r,t,e),t},bidRequest:function(n){return t(r,n,e),n}}}}();function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Y(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?pe:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit");function le(e,n){var t=(0,a.I8)(e),r=!1;return t.forEach((function(e){var t=e.bids.filter((function(e){var t;return e.module===X&&(null===(t=e.params)||void 0===t?void 0:t.configName)===n.configName}));1===t.length?(e.s2sBid=t[0],r=!0,e.ortb2Imp=(0,a.Ee)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):t.length>1&&(0,a.yN)('Multiple "module" bids for the same s2s configuration; all will be ignored',t),e.bids=fe(e.bids,n).map((function(e){return e.bid_id=(0,a._d)(),e}))})),{adUnits:t=t.filter((function(e){return 0!==e.bids.length||null!=e.s2sBid})),hasModuleBids:r}}function ge(e){var n=(0,a.I8)(e);return n.forEach((function(e){e.bids=fe(e.bids,null)})),n=n.filter((function(e){return 0!==e.bids.length}))}var ve=(0,b.z3)("sync",(function(e,n){return e}),"setupAdUnitMediaTypes");function pe(e){(0,a.kJ)(e)||(e=[e]);var n=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return n.add(e)})),n}var he=(0,b.z3)("sync",(function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getS2SBidders,u=void 0===i?pe:i,c=u(n);return(0,a.pP)(e).reduce((function(e,n){return e[c.has(n)?ne:ee].push(n),e}),(t={},(0,o.Z)(t,ee,[]),(0,o.Z)(t,ne,[]),t))}),"partitionBidders");function ye(e,n){var t=ie[e],r=(null==t?void 0:t.getSpec)&&t.getSpec();if(r&&r[n]&&"function"==typeof r[n])return[r,r[n]]}function be(e,n,t,r){try{(0,a.PN)("Invoking ".concat(e,".").concat(n));for(var i=arguments.length,o=new Array(i>4?i-4:0),u=4;u5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6?arguments[6]:void 0;u=(0,C.Bf)(u),h.j8(p.FP.BEFORE_REQUEST_BIDS,e),(0,c.Fb)(e),e.forEach((function(e){(0,a.PO)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((function(e){return!e.bidder||te.isAllowed(E.UE,ce(k.UL,e.bidder))}))})),e=ve(e,i);var s=he(e,ae),d=s[ee],l=s[ne];f.vc.getConfig("bidderSequence")===f.FD&&(d=(0,a.TV)(d));var g=(0,D.nH)(),v=[],b=o.global||{},m=o.bidder||{};function w(e,n){var r=te.redact(null!=n?n:ce(k.UL,e.bidderCode)),i=Object.freeze(r.ortb2((0,a.Ee)({source:{tid:t}},b,m[e.bidderCode])));return e.ortb2=i,e.bids=e.bids.map((function(e){return e.ortb2=i,r.bidRequest(e)})),e}ae.forEach((function(r){var i=se(r);if(r&&r.enabled&&te.isAllowed(E.UE,i)){var o=le(e,r),c=o.adUnits,s=o.hasModuleBids,d=(0,a.DO)();(0===l.length&&s?[null]:l).forEach((function(e){var o=(0,a._d)(),s=u.fork(),f=w({bidderCode:e,auctionId:t,bidderRequestId:o,uniquePbsTid:d,bids:de({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.I8)(c),src:p.os.YZ,metrics:s}),auctionStart:n,timeout:r.timeout,src:p.os.YZ,refererInfo:g,metrics:s},i);0!==f.bids.length&&v.push(f)})),c.forEach((function(e){var n=e.bids.filter((function(e){return(0,y.sE)(v,(function(n){return(0,y.sE)(n.bids,(function(n){return n.bidId===e.bid_id}))}))}));e.bids=n})),v.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=c.filter((function(e){return e.bids.length>0||null!=e.s2sBid})))}))}}));var A=ge(e);return d.forEach((function(e){var o=(0,a._d)(),c=u.fork(),s=w({bidderCode:e,auctionId:t,bidderRequestId:o,bids:de({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.I8)(A),labels:i,src:"client",metrics:c}),auctionStart:n,timeout:r,refererInfo:g,metrics:c}),d=ie[e];d||(0,a.H)("Trying to make a request for bidder that does not exist: ".concat(e)),d&&s.bids&&0!==s.bids.length&&v.push(s)})),v.forEach((function(e){Z.rp.getConsentData()&&(e.gdprConsent=Z.rp.getConsentData()),Z.nX.getConsentData()&&(e.uspConsent=Z.nX.getConsentData()),Z.TJ.getConsentData()&&(e.gppConsent=Z.TJ.getConsentData())})),v}),"makeBidRequests"),re.callBids=function(e,n,t,r,o,u,c){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(n.length){var d=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===p.os.YZ)].push(n),e}),[[],[]]),l=(0,i.Z)(d,2),g=l[0],v=l[1],y=[];v.forEach((function(e){for(var n=-1,t=0;t0?C.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),g.forEach((function(e){h.j8(p.FP.BID_REQUESTED,Y(Y({},e),{},{tid:e.auctionId}))})),d.callBids(m,v,t,(function(){return w.forEach((function(e){return e()}))}),n)}}else(0,a.H)("missing "+e.adapter);b++}})),g.forEach((function(e){e.start=(0,a.AB)();var n=ie[e.bidderCode];f.vc.runWithBidder(e.bidderCode,(function(){(0,a.ji)("CALLING BIDDER"),h.j8(p.FP.BID_REQUESTED,e)}));var i=(0,x.OI)(u,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),s=r.bind(e);try{f.vc.runWithBidder(e.bidderCode,n.callBids.bind(n,e,t,s,i,(function(){return c(e.bidderRequestId)}),f.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,a.H)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),s()}}))}else(0,a.yN)("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},re.videoAdapters=[],re.registerBidAdapter=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(ie[n]=e,Z.qh.register(k.UL,n,null===(t=e.getSpec)||void 0===t?void 0:t.call(e).gvlid),(0,y.q9)(o,"video")&&re.videoAdapters.push(n),(0,y.q9)(o,"native")&&c.Sg.push(n)):(0,a.H)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,a.H)("bidAdapter or bidderCode not specified")},re.aliasBidAdapter=function(e,n,t){if(void 0===ie[n]){var r=ie[e];if(void 0===r){var i=[];ae.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,y.q9)(r,n)?oe[n]=e:i.push(e)}})),i.forEach((function(e){(0,a.H)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,u=function(e){var n=[];return(0,y.q9)(re.videoAdapters,e)&&n.push("video"),(0,y.q9)(c.Sg,e)&&n.push("native"),n}(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(n);else{var s=r.getSpec(),d=t&&t.gvlid;null!=s.gvlid&&null==d&&(0,a.yN)("Alias '".concat(n,"' will NOT re-use the GVL ID of the original adapter ('").concat(s.code,"', gvlid: ").concat(s.gvlid,"). Functionality that requires TCF consent may not work as expected."));var f=t&&t.skipPbsAliasing;o=I(Object.assign({},s,{code:n,gvlid:d,skipPbsAliasing:f})),oe[n]=e}re.registerBidAdapter(o,n,{supportedMediaTypes:u})}catch(n){(0,a.H)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.ji)('alias name "'+n+'" has been already specified.')},re.resolveAlias=function(e){for(var n,t=e;oe[t]&&(!n||!n.has(t));)t=oe[t],(n=n||new Set).add(t);return t},re.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,r=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,ue[t]={adapter:n,gvlid:r},Z.qh.register(k._U,t,r)):(0,a.H)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n analytics adapter must implement an enableAnalytics() function')):(0,a.H)("Prebid Error: analyticsAdapter or analyticsCode not specified")},re.enableAnalytics=function(e){(0,a.kJ)(e)||(e=[e]),e.forEach((function(e){var n=ue[e.provider];n&&n.adapter?te.isAllowed(E.x$,ce(k._U,e.provider,(0,o.Z)({},q.Hw,e)))&&n.adapter.enableAnalytics(e):(0,a.H)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},re.getBidAdapter=function(e){return ie[e]},re.getAnalyticsAdapter=function(e){return ue[e]},re.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,a.S0)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,a.vM)(n,"bidder"),Object.keys(n).forEach((function(e){me(e,"onTimeout",n[e])}))},re.callBidWonBidder=function(e,n,t){n.params=(0,a.S0)(t,n.adUnitCode,n.bidder),N.f.incrementBidderWinsCounter(n.adUnitCode,n.bidder),me(e,"onBidWon",n)},re.callBidBillableBidder=function(e){me(e.bidder,"onBidBillable",e)},re.callSetTargetingBidder=function(e,n){me(e,"onSetTargeting",n)},re.callBidViewableBidder=function(e,n){me(e,"onBidViewable",n)},re.callBidderError=function(e,n,t){me(e,"onBidderError",{error:n,bidderRequest:t})},re.callDataDeletionRequest=(0,b.z3)("sync",(function(){for(var e=arguments.length,n=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:{},r=t.method||(n?s:c);if(r===c&&n){var i=(0,a.en)(e,t);Object.assign(i.search,n),e=(0,a.Q2)(i)}var o=new Headers(t.customHeaders);o.set(d,t.contentType||"text/plain");var f={method:r,headers:o};return r!==c&&n&&(f.body=n),t.withCredentials&&(f.credentials="include"),t.browsingTopics&&isSecureContext&&(f.browsingTopics=!0),u.makeRequest(e,f)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,r=n.done,i=function(n,t){var r,i,a;null==e||null!=(null===(r=t)||void 0===r?void 0:r.signal)||o.vc.getConfig("disableAjaxTimeout")||(a=u.timeout(e,n),t=Object.assign({signal:a.signal},t));var c=u.fetch(n,t);return null!=(null===(i=a)||void 0===i?void 0:i.done)&&(c=c.finally(a.done)),c};return null==t&&null==r||(i=function(e){return function(n,i){var o=new URL(null==(null==n?void 0:n.url)?n:n.url,document.location).origin,a=e(n,i);return t&&t(o),r&&(a=a.finally((function(){return r(o)}))),a}}(i)),i}function g(e,n){var t=e.status,r=e.statusText,i=void 0===r?"":r,o=e.headers,u=e.url,c=0;function s(e){if(0===c)try{var t,r;c=(new DOMParser).parseFromString(n,null==o||null===(t=o.get(d))||void 0===t||null===(r=t.split(";"))||void 0===r?void 0:r[0])}catch(n){c=null,e&&e(n)}return c}return{readyState:XMLHttpRequest.DONE,status:t,statusText:i,responseText:n,response:n,responseType:"",responseURL:u,get responseXML(){return s(a.H)},getResponseHeader:function(e){return null!=o&&o.has(e)?o.get(e):null},toJSON:function(){return Object.assign({responseXML:s()},this)}}}function v(e,n){var t="object"===(0,i.Z)(n)&&null!=n?n:{success:"function"==typeof n?n:function(){return null},error:function(e,n){return(0,a.H)("Network error",e,n)}},o=t.success,u=t.error;e.then((function(e){return e.text().then((function(n){return[e,n]}))})).then((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],a=g(t,i);t.ok||304===t.status?o(i,a):u(t.statusText,a)}),(function(){return u("",g({status:0},""))}))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,r=n.done,i=l(e,{request:t,done:r});return function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};v(i(f(e,t,r)),n)}}var h=p();l()},1176:function(e,n,t){t.d(n,{K:function(){return ue}});var r=t(3324),i=t(9062),o=t(4358),a=t(1002),u=t(265),c=t(6463),s=t(59),d=t(8928),f=t(3193);function l(e,n){var t=n?""):"";return'\n \n \n prebid.org wrapper\n \n ").concat(t,"\n \n \n \n ")}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?ue.index:t,i=e.vastXml?e.vastXml:l(e.vastUrl,e.vastImpUrl),o=r.getAuction(e),a=Number(e.ttl)+15,u={type:"xml",value:i,ttlseconds:a};return f.vc.getConfig("cache.vasttrack")&&(u.bidder=e.bidder,u.bidid=e.requestId,u.aid=e.auctionId),null!=o&&(u.timestamp=o.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(u.key=e.customCacheKey),u}function v(e){return{success:function(n){var t;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}t?e(null,t):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(n,t){e(new Error("Error storing video ad in the cache: ".concat(n,": ").concat(JSON.stringify(t))),[])}}}var p=t(5706),h=t(1974),y=t(2797),b=t(4614),m=t(154),w=t(4679),C=t(5975),A=t(2021),T=t(2931),k=t(5644),E=t(8792),O=t(9128);var j=t(8640),I=h.k_.syncUsers,B="completed";A.on(k.FP.BID_ADJUSTMENT,(function(e){!function(e){var n=function(e,n,t){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.index,u=void 0===a?ue.index:a,c=i.bs,s=void 0===c?C.S:c;t=t||u.getBidRequest(n);var d=null==n?void 0:n.adapterCode,f=(null==n?void 0:n.bidderCode)||(null===(r=t)||void 0===r?void 0:r.bidder),l=s.get(null==n?void 0:n.adapterCode,"adjustAlternateBids"),g=s.getOwn(f,"bidCpmAdjustment")||s.get(l?d:f,"bidCpmAdjustment");if(g&&"function"==typeof g)try{return g(e,Object.assign({},n),t)}catch(e){(0,o.H)("Error during bid adjustment",e)}return e}(e.cpm,e);n>=0&&(e.cpm=n)}(e)}));var S={},U={},P=[],R=(0,j.R)();function x(e){var n=e.adUnits,t=e.adUnitCodes,r=e.callback,i=e.cbTimeout,u=e.labels,c=e.auctionId,s=e.ortb2Fragments,d=e.metrics;d=(0,O.Bf)(d);var l,g,v,p,h=n,y=u,m=t,C=c||(0,o.DO)(),j=i,x=new Set,M=(0,E.P)(),F=[],z=r,L=[],K=[],V=[],Q=[],$=[];function Y(){return{auctionId:C,timestamp:l,auctionEnd:g,auctionStatus:p,adUnits:h,adUnitCodes:m,labels:y,bidderRequests:L,noBids:V,bidsReceived:K,bidsRejected:F,winningBids:Q,timeout:j,metrics:d,seatNonBids:$}}function X(e){if(e?A.j8(k.FP.AUCTION_TIMEOUT,Y()):clearTimeout(v),void 0===g){var t=[];e&&((0,o.ji)("Auction ".concat(C," timedOut")),(t=L.filter((function(e){return!x.has(e.bidderRequestId)})).flatMap((function(e){return e.bids}))).length&&A.j8(k.FP.BID_TIMEOUT,t)),p=B,g=Date.now(),d.checkpoint("auctionEnd"),d.timeBetween("requestBids","auctionEnd","requestBids.total"),d.timeBetween("callBids","auctionEnd","requestBids.callBids"),M.resolve(),A.j8(k.FP.AUCTION_END,Y()),q(h,(function(){try{if(null!=z){var r=K.filter((function(e){return m.includes(e.adUnitCode)})).reduce(ee,{});z.apply(R,[r,e,C]),z=null}}catch(e){(0,o.H)("Error executing bidsBackHandler",null,e)}finally{t.length&&T.ZP.callTimedOutBidders(n,t,j);var i=f.vc.getConfig("userSync")||{};i.enableOverride||I(i.syncDelay)}}))}}function ne(){f.vc.resetBidder(),(0,o.PN)("Bids Received for Auction with id: ".concat(C),K),p=B,X(!1)}function te(e){x.add(e)}function re(e){var n=this;e.forEach((function(e){var n;n=e,L=L.concat(n)}));var t={},r={bidRequests:e,run:function(){v=setTimeout((function(){return X(!0)}),j),p="inProgress",A.j8(k.FP.AUCTION_INIT,Y());var r=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=(void 0===t&&ue.index,0),i=!1,u=new Set,c={};function s(){r--,i&&0===r&&e()}function d(e,n,t){return c[n.requestId]=!0,G(n,e),r++,t(s)}function l(e,t){d(e,t,(function(e){var r=J(t);A.j8(k.FP.BID_ACCEPTED,r),r.mediaType===w.pX?H(n,r,e):(null!=r.native&&"object"===(0,a.Z)(r.native)&&W(r),_(n,r),e())}))}function g(e,t,r){return d(e,t,(function(e){t.rejectionReason=r,(0,o.yN)("Bid from ".concat(t.bidder||"unknown bidder"," was rejected: ").concat(r),t),A.j8(k.FP.BID_REJECTED,t),n.addBidRejected(t),e()}))}function v(){var t=this,a=n.getBidRequests(),s=f.vc.getConfig("auctionOptions");if(u.add(t),s&&!(0,o.xb)(s)){var d=s.secondaryBidders;d&&!a.every((function(e){return(0,b.q9)(d,e.bidderCode)}))&&(a=a.filter((function(e){return!(0,b.q9)(d,e.bidderCode)})))}i=a.every((function(e){return u.has(e)})),t.bids.forEach((function(e){c[e.bidId]||(n.addNoBid(e),A.j8(k.FP.NO_BID,e))})),i&&0===r&&e()}return{addBidResponse:function(){function e(e,n){var t;N.call({dispatch:l},e,n,(t=!1,function(r){t||(g(e,n,r),t=!0)}))}return e.reject=g,e}(),adapterDone:function(){var e=this;D(E.Z.resolve()).finally((function(){return v.call(e)}))}}}(ne,n);T.ZP.callBids(h,e,r.addBidResponse,r.adapterDone,{request:function(e,n){u(S,n),u(t,e),U[e]||(U[e]={SRA:!0,origin:n}),t[e]>1&&(U[e].SRA=!1)},done:function(e){S[e]--,P[0]&&i(P[0])&&P.shift()}},j,te,s)}};function i(e){var n=!0,t=f.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===k.os.YZ?"s2s":e.bidderCode;return U[i]&&(!1===U[i].SRA&&(r=Math.min(e.bids.length,t)),S[U[i].origin]+r>t&&(n=!1)),!n})),n&&e.run(),n}function u(e,n){void 0===e[n]?e[n]=1:e[n]++}i(r)||((0,o.yN)("queueing auction due to limited endpoint capacity"),P.push(r))}return A.on(k.FP.SEAT_NON_BID,(function(e){var n;e.auctionId===C&&(n=e.seatnonbid,$=$.concat(n))})),{addBidReceived:function(e){K=K.concat(e)},addBidRejected:function(e){F=F.concat(e)},addNoBid:function(e){V=V.concat(e)},callBids:function(){p="started",l=Date.now();var e=d.measureTime("requestBids.makeRequests",(function(){return T.ZP.makeBidRequests(h,l,C,j,y,s,d)}));(0,o.PN)("Bids Requested for Auction with id: ".concat(C),e),d.checkpoint("callBids"),e.length<1?((0,o.yN)("No valid bid requests returned for auction"),ne()):Z.call({dispatch:re,context:this},e)},addWinningBid:function(e){var t=n.find((function(n){return n.transactionId===e.transactionId}));Q=Q.concat(e),(0,o.R_)(e),T.ZP.callBidWonBidder(e.adapterCode||e.bidder,e,n),t&&!t.deferBilling&&T.ZP.callBidBillableBidder(e)},setBidTargeting:function(e){T.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return Q},getAuctionStart:function(){return l},getAuctionEnd:function(){return g},getTimeout:function(){return j},getAuctionId:function(){return C},getAuctionStatus:function(){return p},getAdUnits:function(){return h},getAdUnitCodes:function(){return m},getBidRequests:function(){return L},getBidsReceived:function(){return K},getNoBids:function(){return V},getNonBids:function(){return $},getFPD:function(){return s},getMetrics:function(){return d},end:M.promise}}var N=(0,y.z3)("sync",(function(e,n,t){this.dispatch.call(null,e,n)}),"addBidResponse"),D=(0,y.z3)("sync",(function(e){return e}),"responsesReady"),Z=(0,y.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),q=(0,y.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function _(e,n){!function(e){var n,t=!0===C.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(t||e.dealId)&&(n=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?ue.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},a=Y(n.mediaType,e);X(o,a,n,i),e&&C.S.getOwn(e,k.k2.xn)&&(X(o,C.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=C.S.get(e,"sendStandardTargeting"));n.native&&(o=Object.assign({},o,(0,s.Ur)(n)));return o}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},n)}(n),(0,O.Bf)(n.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(n),A.j8(k.FP.BID_RESPONSE,n)}function H(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.index,a=void 0===i?ue.index:i,c=!0,s=(0,u.Z)(a.getMediaTypes({requestId:n.originalRequestId||n.requestId,transactionId:n.transactionId}),"video"),d=s&&(0,u.Z)(s,"context"),l=s&&(0,u.Z)(s,"useCacheKey");f.vc.getConfig("cache.url")&&(l||d!==m.gZ)&&(!n.videoCacheKey||f.vc.getConfig("cache.ignoreBidderCacheKey")?(c=!1,K(e,n,t,s)):n.vastUrl||((0,o.H)("videoCacheKey specified but not required vastUrl for video bid"),c=!1)),c&&(_(e,n),t())}var M,F,W=function(e){var n,t,r=null===(n=ue.index.getAdUnit(e))||void 0===n?void 0:n.nativeOrtbRequest,i=null===(t=e.native)||void 0===t?void 0:t.ortb;if(r&&i){var o=(0,s.zq)(i,r);Object.assign(e.native,o)}},z=function(e){!function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.OI,r={puts:e.map(g)};t(f.vc.getConfig("cache.timeout"))(f.vc.getConfig("cache.url"),v(n),JSON.stringify(r),{contentType:"text/plain",withCredentials:!0})}(e.map((function(e){return e.bidResponse})),(function(n,t){t.forEach((function(t,r){var i,a=e[r],u=a.auctionInstance,c=a.bidResponse,s=a.afterBidAdded;n?(0,o.yN)("Failed to save to the video cache: ".concat(n,". Video bid must be discarded.")):""===t.uuid?(0,o.yN)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(c.videoCacheKey=t.uuid,c.vastUrl||(c.vastUrl=(i=c.videoCacheKey,"".concat(f.vc.getConfig("cache.url"),"?uuid=").concat(i))),_(u,c),s())}))}))};f.vc.getConfig("cache",(function(e){M="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,F="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));var L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,t=[[]],r=!1,i=function(e){return e()};return function(o,a,u){var c=F>0?e:i;t[t.length-1].length>=M&&t.push([]),t[t.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:u}),r||(r=!0,c((function(){t.forEach(n),t=[[]],r=!1}),F))}}(),K=(0,y.z3)("async",(function(e,n,t,r){L(e,n,t)}),"callPrebidCache");function G(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?ue.index:r,a=i.getBidderRequest(e),u=i.getAdUnit(e),c=a&&a.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,o.AB)(),requestTimestamp:e.requestTimestamp||c,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:n}),null!=(null==u?void 0:u.ttlBuffer)&&(e.ttlBuffer=u.ttlBuffer),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function J(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?ue.index:r;A.j8(k.FP.BID_ADJUSTMENT,e);var o=(null===(n=i.getBidRequest(e))||void 0===n?void 0:n.renderer)||i.getAdUnit(e).renderer,u=e.mediaType,s=i.getMediaTypes(e),d=s&&s[u],l=d&&d.renderer,g=null;l&&l.url&&l.render&&(!0!==l.backupOnly||!e.renderer)?g=l:o&&o.url&&o.render&&(!0!==o.backupOnly||!e.renderer)&&(g=o),g&&(e.renderer=p.Th.install({url:g.url,config:g.options}),e.renderer.setRender(g.render));var v=V(e.mediaType,s,f.vc.getConfig("mediaTypePriceGranularity")),h=(0,c.D)(e.cpm,"object"===(0,a.Z)(v)?v:f.vc.getConfig("customPriceBucket"),f.vc.getConfig("currency.granularityMultiplier"));return e.pbLg=h.low,e.pbMg=h.med,e.pbHg=h.high,e.pbAg=h.auto,e.pbDg=h.dense,e.pbCg=h.custom,e}function V(e,n,t){if(e&&t){if(e===w.pX){var r=(0,u.Z)(n,"".concat(w.pX,".context"),"instream");if(t["".concat(w.pX,"-").concat(r)])return t["".concat(w.pX,"-").concat(r)]}return t[e]}}var Q=function(e){return function(n){var t=e||function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,t=void 0===n?ue.index:n,r=V(e.mediaType,t.getMediaTypes(e),f.vc.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&r?"string"==typeof r?r:"custom":f.vc.getConfig("priceGranularity")}(n);return t===k.Ql.B7?n.pbAg:t===k.Ql.uN?n.pbDg:t===k.Ql.yE?n.pbLg:t===k.Ql.M2?n.pbMg:t===k.Ql.lj?n.pbHg:t===k.Ql.qN?n.pbCg:void 0}};function $(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,o.NA)(e,n)}}}function Y(e,n){var t=k.TD,r=Object.assign({},C.S.settingsFor(null));if(r[k.k2.xn]||(r[k.k2.xn]=function(){var e=k.TD;return[$(e.BIDDER,"bidderCode"),$(e.AD_ID,"adId"),$(e.PRICE_BUCKET,Q()),$(e.SIZE,"size"),$(e.DEAL,"dealId"),$(e.SOURCE,"source"),$(e.FORMAT,"mediaType"),$(e.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:""})),$(e.ACAT,(function(e){return e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:""})),$(e.DSP,(function(e){return e.meta&&(e.meta.networkId||e.meta.networkName)?(0,u.Z)(e,"meta.networkName")||(0,u.Z)(e,"meta.networkId"):""})),$(e.CRID,(function(e){return e.creativeId?e.creativeId:""}))]}()),"video"===e){var i=r[k.k2.xn].slice();if(r[k.k2.xn]=i,[t.UUID,t.CACHE_ID].forEach((function(e){void 0===(0,b.sE)(i,(function(n){return n.key===e}))&&i.push($(e,"videoCacheKey"))})),f.vc.getConfig("cache.url")&&(!n||!1!==C.S.get(n,"sendStandardTargeting"))){var a=(0,o.en)(f.vc.getConfig("cache.url"));void 0===(0,b.sE)(i,(function(e){return e.key===t.CACHE_HOST}))&&i.push($(t.CACHE_HOST,(function(e){return(0,u.Z)(e,"adserverTargeting.".concat(t.CACHE_HOST))?e.adserverTargeting[t.CACHE_HOST]:a.hostname})))}}return r}function X(e,n,t,r){var i=n[k.k2.xn];return t.size=t.getSize(),(i||[]).forEach((function(i){var a=i.key,u=i.val;if(e[a]&&(0,o.yN)("The key: "+a+" is being overwritten"),(0,o.LQ)(u))try{u=u(t,r)}catch(e){(0,o.H)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==k.TD.DEAL&&a!==k.TD.ACAT&&a!==k.TD.DSP&&a!==k.TD.CRID||!(0,o.jH)(u)&&null!=u?e[a]=u:(0,o.PN)("suppressing empty key '"+a+"' from adserver targeting")})),e}function ee(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}function ne(e){Object.assign(this,{getAuction:function(n){var t=n.auctionId;if(null!=t)return e().find((function(e){return e.getAuctionId()===t}))},getAdUnit:function(n){var t=n.transactionId;if(null!=t)return e().flatMap((function(e){return e.getAdUnits()})).find((function(e){return e.transactionId===t}))},getMediaTypes:function(e){var n=e.transactionId,t=e.requestId;if(null!=t){var r=this.getBidRequest({requestId:t});if(null!=r&&(null==n||r.transactionId===n))return r.mediaTypes}else if(null!=n){var i=this.getAdUnit({transactionId:n});if(null!=i)return i.mediaTypes}},getBidderRequest:function(n){var t=n.requestId,r=n.bidderRequestId;if(null!=t||null!=r){var i=e().flatMap((function(e){return e.getBidRequests()}));return null!=r&&(i=i.filter((function(e){return e.bidderRequestId===r}))),null==t?i[0]:i.find((function(e){return e.bids&&null!=e.bids.find((function(e){return e.bidId===t}))}))}},getBidRequest:function(n){var t=n.requestId;if(null!=t)return e().flatMap((function(e){return e.getBidRequests()})).flatMap((function(e){return e.bids})).find((function(e){return e&&e.bidId===t}))}})}var te=t(613),re=t(8833);function ie(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return oe(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},t=n.src,i=void 0===t?"client":t,o=n.bidder,a=void 0===o?"":o,u=n.bidId,c=n.transactionId,s=n.auctionId,d=i,f=e||0;function l(){switch(f){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}this.bidderCode=a,this.width=0,this.height=0,this.statusMessage=l(),this.adId=(0,r._d)(),this.requestId=u,this.transactionId=c,this.auctionId=s,this.mediaType="banner",this.source=d,this.getStatusCode=function(){return f},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,auctionId:this.auctionId}}}function o(e,n){return new i(e,n)}},3193:function(e,n,t){t.d(n,{FD:function(){return g},vc:function(){return b}});var r=t(4942),i=t(1002),o=t(3324),a=t(6463),u=t(4614),c=t(4358),s=t(265),d=t(5644);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var l="TRUE"===(0,c.ak)(d.f).toUpperCase(),g="random",v={};v[g]=!0,v.fixed=!0;var p=g,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},y="*";var b=function(){var e,n,t,d=[],g=null;function b(){function r(e){return s[e].val}function i(e,n){s[e].val=n}e={};var s={publisherDomain:{set:function(e){null!=e&&(0,c.yN)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),i("publisherDomain",e)}},priceGranularity:{val:h.MEDIUM,set:function(e){g(e)&&("string"==typeof e?i("priceGranularity",f(e)?e:h.MEDIUM):(0,c.PO)(e)&&(i("customPriceBucket",e),i("priceGranularity",h.CUSTOM),(0,c.ji)("Using custom price granularity")))}},customPriceBucket:{val:{},set:function(){}},mediaTypePriceGranularity:{val:{},set:function(e){null!=e&&i("mediaTypePriceGranularity",Object.keys(e).reduce((function(n,t){return g(e[t])?"string"==typeof e?n[t]=f(e[t])?e[t]:r("priceGranularity"):(0,c.PO)(e)&&(n[t]=e[t],(0,c.ji)("Using custom price granularity for ".concat(t))):(0,c.yN)("Invalid price granularity for media type: ".concat(t)),n}),{}))}},bidderSequence:{val:p,set:function(e){v[e]?i("bidderSequence",e):(0,c.yN)("Invalid order: ".concat(e,". Bidder Sequence was not set."))}},auctionOptions:{val:{},set:function(e){(function(e){if(!(0,c.PO)(e))return(0,c.yN)("Auction Options must be an object"),!1;for(var n=0,t=Object.keys(e);n2&&void 0!==arguments[2]?arguments[2]:{},i=n;if("string"!=typeof e&&(i=e,e=y,t=n||{}),"function"==typeof i){var o={topic:e,callback:i};return d.push(o),t.init&&i(e===y?T():(0,r.Z)({},e,T(e))),function(){d.splice(d.indexOf(o),1)}}(0,c.H)("listener must be a function")}function S(e){var n=Object.keys(e);d.filter((function(e){return(0,u.q9)(n,e.topic)})).forEach((function(n){n.callback((0,r.Z)({},n.topic,e[n.topic]))})),d.filter((function(e){return e.topic===y})).forEach((function(n){return n.callback(e)}))}function U(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((function(r){t[r]||(t[r]={}),Object.keys(e.config).forEach((function(i){var o=e.config[i];if((0,c.PO)(o)){var a=n?c.Ee:Object.assign;t[r][i]=a({},t[r][i]||{},o)}else t[r][i]=o}))}))}catch(e){(0,c.H)(e)}function r(e){if(!(0,c.PO)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,c.PO)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function P(e,n){g=e;try{return n()}finally{R()}}function R(){g=null}return b(),{getCurrentBidder:function(){return g},resetBidder:R,getConfig:T,getAnyConfig:A,readConfig:O,readAnyConfig:j,setConfig:I,mergeConfig:function(e){if((0,c.PO)(e)){var n=(0,c.Ee)(m(),e);return I(function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:(0,p.AB)();this.generatedTime=n,(0,v.Z)(this,O,!0),C(this,I,S).call(this,e)}},{key:"getConsentData",value:function(){return(0,g.Z)(this,T)}},{key:"hash",get:function(){var e=this;return(0,g.Z)(this,O)&&((0,v.Z)(this,j,(0,p._R)(JSON.stringify((0,g.Z)(this,T)&&this.hashFields?this.hashFields.map((function(n){return(0,g.Z)(e,T)[n]})):(0,g.Z)(this,T)))),(0,v.Z)(this,O,!1)),(0,g.Z)(this,j)}}]),e}();function S(e){(0,v.Z)(this,E,!0),(0,v.Z)(this,T,e),(0,g.Z)(this,k).resolve(e)}var U=function(e){a(t,e);var n=b(t);function t(){return(0,d.Z)(this,t),n.apply(this,arguments)}return(0,f.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(B),P=function(e){a(t,e);var n=b(t);function t(){var e;(0,d.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:F;function n(n){return function(){return Object.fromEntries(e.map((function(e){var t=(0,r.Z)(e,2);return[t[0],t[1][n]()]})))}}return e=Object.entries(e),Object.assign({get promise(){return h.Z.all(e.map((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1].promise.then((function(e){return[t,e]}))}))).then((function(e){return Object.fromEntries(e)}))},get hash(){return(0,p._R)(e.map((function(e){var n=(0,r.Z)(e,2);n[0];return n[1].hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((function(e){return[e,n(e)]}))))}()},6463:function(e,n,t){t.d(n,{D:function(){return f},t:function(){return g}});var r=t(4614),i=t(4358),o=t(3193),a={buckets:[{max:5,increment:.5}]},u={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},s={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},d={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":l(e,a,t),med:""===r?"":l(e,u,t),high:""===r?"":l(e,c,t),auto:""===r?"":l(e,d,t),dense:""===r?"":l(e,s,t),custom:""===r?"":l(e,n,t)}}function l(e,n,t){var a="";if(!g(n))return a;var u=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),c=0,s=(0,r.sE)(n.buckets,(function(n){if(e>u.max*t){var r=n.precision;void 0===r&&(r=2),a=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=c*t)return n.min=c,n;c=n.max}}));return s&&(a=function(e,n,t){var r=void 0!==n.precision?n.precision:2,a=n.increment*t,u=n.min*t,c=Math.floor,s=o.vc.getConfig("cpmRoundingFunction");"function"==typeof s&&(c=s);var d,f,l=Math.pow(10,r+2),g=(e*l-u*l)/(a*l);try{d=c(g)*a+u}catch(e){f=!0}(f||"number"!=typeof d)&&((0,i.yN)("Invalid rounding function passed in config"),d=Math.floor(g)*a+u);return(d=Number(d.toFixed(10))).toFixed(r)}(e,s,t)),a}function g(e){if((0,i.xb)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(n=!1)})),n}},2021:function(e,n,t){t.d(n,{S1:function(){return h},j8:function(){return b},on:function(){return p},vw:function(){return y}});var r=t(4358),i=t(5644),o=t(613),a=t(3193),u="eventHistoryTTL",c=null,s=(0,o.Z)({monotonic:!0,ttl:function(){return c}});a.vc.getConfig(u,(function(e){var n,t=c;e=null===(n=e)||void 0===n?void 0:n[u],t!==(c="number"==typeof e?1e3*e:null)&&s.refresh()}));var d=Array.prototype.slice,f=Array.prototype.push,l=Object.values(i.FP),g=i.aI,v=function(){var e={},n={};function t(n,t){r.ji("Emitting event for: "+n);var i=t[0]||{},o=i[g[n]],a=e[n]||{que:[]},u=Object.keys(a),c=[];s.add({eventType:n,args:i,id:o,elapsedTime:r.bd()}),o&&u.includes(o)&&f.apply(c,a[o].que),f.apply(c,a.que),(c||[]).forEach((function(e){if(e)try{e.apply(null,t)}catch(e){r.H("Error executing handler:","events.js",e,n)}}))}function i(e){return l.includes(e)}return n.has=i,n.on=function(n,t,o){if(i(n)){var a=e[n]||{que:[]};o?(a[o]=a[o]||{que:[]},a[o].que.push(t)):a.que.push(t),e[n]=a}else r.H("Wrong event name : "+n+" Valid event names :"+l)},n.emit=function(e){var n=d.call(arguments,1);t(e,n)},n.off=function(n,t,i){var o=e[n];r.xb(o)||r.xb(o.que)&&r.xb(o[i])||i&&(r.xb(o[i])||r.xb(o[i].que))||(i?(o[i].que||[]).forEach((function(e){var n=o[i].que;e===t&&n.splice(n.indexOf(e),1)})):(o.que||[]).forEach((function(e){var n=o.que;e===t&&n.splice(n.indexOf(e),1)})),e[n]=o)},n.get=function(){return e},n.addEvents=function(e){l=l.concat(e)},n.getEvents=function(){return s.toArray().map((function(e){return Object.assign({},e)}))},n}();r.u2(v.emit.bind(v));var p=v.on,h=v.off,y=(v.get,v.getEvents),b=v.emit;v.addEvents,v.has},6292:function(e,n,t){t.d(n,{S:function(){return j}});var r=t(3324),i=t(2797),o=t(5102),a=t(8196),u=t(4358),c=t(6475),s=t(3193),d=t(8792),f=["architecture","bitness","model","platformVersion","fullVersionList"],l=["brands","mobile","platform"],g=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t=n&&l.some((function(e){return void 0!==n[e]}))?Object.freeze(p(1,n)):null;return function(){return t}}(),v=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t={},r=new WeakMap;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;if(!r.has(e)){var i=Array.from(e);i.sort(),r.set(e,i.join("|"))}var o=r.get(e);if(!t.hasOwnProperty(o))try{t[o]=n.getHighEntropyValues(e).then((function(e){return(0,u.xb)(e)?null:Object.freeze(p(2,e))})).catch((function(){return null}))}catch(e){t[o]=d.Z.resolve(null)}return t[o]}}();function p(e,n){function t(e,n){var t={brand:e};return(0,u.d8)(n)&&!(0,u.jH)(n)&&(t.version=n.split(".")),t}var r={source:e};return n.platform&&(r.platform=t(n.platform,n.platformVersion)),(n.fullVersionList||n.brands)&&(r.browsers=(n.fullVersionList||n.brands).map((function(e){return t(e.brand,e.version)}))),void 0!==n.mobile&&(r.mobile=n.mobile?1:0),["model","bitness","architecture"].forEach((function(e){var t=n[e];(0,u.d8)(t)&&(r[e]=t)})),r}var h=["dooh","app","site"];function y(e,n){return null!=e[n]&&Object.keys(e[n]).length>0}var b=t(571),m=t(286),w=t(4947),C=t(9633);function A(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(t[i]=(0,u.Ee)({},o,t[i]))})),i&&(0,c.N)(t,"device.sua",Object.assign({},i,t.device.sua)),o){var d={cdep:o};(0,c.N)(t,"device.ext",Object.assign({},d,t.device.ext))}t=O(t);var f,l=A(h);try{for(l.s();!(f=l.n()).done;){var g=f.value;if(y(t,g)){t[g]=(0,u.Ee)({},U(t,a),t[g]);break}}}catch(e){l.e(e)}finally{l.f()}return t}))}));function I(e){try{return e(E.getWindowTop())}catch(n){return e(E.getWindowSelf())}}function B(e){return(0,u.iG)(e,Object.keys(e))}var S={site:function(e,n){if(!h.filter((function(e){return"site"!==e})).some(y.bind(null,e)))return B({page:n.page,ref:n.ref})},device:function(){return I((function(e){return{w:e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,h:e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight,dnt:(0,u.oV)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift()}}))},regs:function(){var e={};I((function(e){return e.navigator.globalPrivacyControl}))&&(0,c.N)(e,"ext.gpc",1);var n=s.vc.getConfig("coppa");return"boolean"==typeof n&&(e.coppa=n?1:0),e}};function U(e,n){var t,r,i,a=(0,o.hh)(n.page,{noLeadingWww:!0});return B({domain:a,keywords:null===(t=I((function(e){return e.document.querySelector("meta[name='keywords']")})))||void 0===t||null===(r=t.content)||void 0===r||null===(i=r.replace)||void 0===i?void 0:i.call(r,/\s/g,""),publisher:B({domain:E.findRootDomain(a)})})}},8196:function(e,n,t){t.d(n,{W:function(){return o}});var r=t(4358),i=(0,t(5164).eA)("fpdEnrichment"),o=(0,r.HP)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return e;var n,t,o=e.split(".");if(2===o.length)return e;var a=-2,u="_rdc".concat(Date.now()),c="writeable";do{n=o.slice(a).join(".");var s=new Date((0,r.AB)()+1e4).toUTCString();i.setCookie(u,c,s,"Lax",n,void 0);var d=i.getCookie(u,void 0);d===c?(t=!1,i.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(a+=-1,t=Math.abs(a)<=o.length)}while(t);return n}))},2797:function(e,n,t){t.d(n,{Bx:function(){return g},Cd:function(){return s},IF:function(){return v},bA:function(){return l},v5:function(){return d},z3:function(){return u}});var r=t(9062),i=t(1432),o=t.n(i),a=t(8792),u=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.P)();u.ready=function(){var e=u.ready;return function(){try{return e.apply(u,arguments)}finally{c.resolve()}}}();var s=c.promise,d=u.get;var f={};function l(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.postInstallAllowed,o=void 0!==i&&i;u("async",(function(t){t.forEach((function(e){return n.apply(void 0,(0,r.Z)(e))})),o&&(f[e]=n)}),e)([])}function g(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(o.img.ext={aspectratios:d})}else(0,u.H)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,u.H)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,u.U)(r.sizes[0])&&(0,u.U)(r.sizes[1])?(o.img.w=r.sizes[0],o.img.h=r.sizes[1],delete o.img.hmin,delete o.img.wmin):(0,u.H)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===t?o.title={len:r.len||140}:"ext"===t&&(o.ext=r,delete o.required);n.assets.push(o)}else n.privacy=1;else(0,u.H)("Unrecognized native asset code: ".concat(t,". Asset will be ignored."));return n}(e.nativeParams))}))}function B(e){var n=e.assets;if(!Array.isArray(n)||0===n.length)return(0,u.H)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",n),!1;var t=n.map((function(e){return e.id}));return n.length!==new Set(t).size||t.some((function(e){return e!==parseInt(e,10)}))?((0,u.H)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?((0,u.H)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):n.every((function(e){return function(e){if(!(0,u.PO)(e))return(0,u.H)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,u.hj)(e.img.w)&&!(0,u.hj)(e.img.wmin))return(0,u.H)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,u.hj)(e.img.h)&&!(0,u.hj)(e.img.hmin))return(0,u.H)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,u.hj)(e.title.len))return(0,u.H)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,u.hj)(e.data.type))return(0,u.H)("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&(0,u.hj)(e.video.minduration)&&(0,u.hj)(e.video.maxduration)))return(0,u.H)("video asset is not properly configured"),!1;return!0}(e)}))}function S(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?s.K.index:r,o=i.getAdUnit(e);if(!o)return!1;var a=o.nativeOrtbRequest,u=(null===(n=e.native)||void 0===n?void 0:n.ortb)||M(e.native,a);return U(u,a)}function U(e,n){if(!(0,a.Z)(e,"link.url"))return(0,u.H)("native response doesn't have 'link' property. Ortb response: ",e),!1;var t=n.assets.filter((function(e){return 1===e.required})).map((function(e){return e.id})),r=e.assets.map((function(e){return e.id})),i=t.every((function(e){return(0,c.q9)(r,e)}));return i||(0,u.H)("didn't receive a bid with all required assets. Required ids: ".concat(t,", but received ids in response: ").concat(r)),i}function P(e,n){var t=n.native.ortb||H(n.native);return"click"===e.action?function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetchURL,r=void 0===t?u.hq:t;if(n){var i,o=(e.assets||[]).filter((function(e){return e.link})).reduce((function(e,n){return e[n.id]=n.link,e}),{}),a=(null===(i=e.link)||void 0===i?void 0:i.clicktrackers)||[],c=o[n],s=a;c&&(s=c.clicktrackers||[]),s.forEach((function(e){return r(e)}))}else{var d;((null===(d=e.link)||void 0===d?void 0:d.clicktrackers)||[]).forEach((function(e){return r(e)}))}}(t,null==e?void 0:e.assetId):function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.runMarkup,r=void 0===t?function(e){return(0,u.$8)(e)}:t,i=n.fetchURL,o=void 0===i?u.hq:i,a=(e.eventtrackers||[]).filter((function(e){return e.event===O})).reduce((function(e,n){return E.hasOwnProperty(n.method)&&e[E[n.method]].push(n.url),e}),{img:[],js:[]}),c=a.img,s=a.js;e.imptrackers&&(c=c.concat(e.imptrackers));c.forEach((function(e){return o(e)})),s=s.map((function(e){return'